﻿package com.eitb.programas.olentzero09.events{
	import flash.events.Event;
	public class OlentzeroEvent extends Event {
		public static  const DEFAULT_NAME:String = "com.eitb.programas.olentzero09.events.OlentzeroEvent";
		public static  const COLISION:String = "COLISION";
		public static  const MUERTE:String = "MUERTE";
		public var colision:String;
		public var x:int;
		public var y:int;
		
		public function OlentzeroEvent($type:String, $params:Object, $bubbles:Boolean = false, $cancelable:Boolean = false) {
			super($type, $bubbles, $cancelable);
			this.colision = $params.colision;
			this.x = $params.x;
			this.y = $params.y;
		}
		public override function clone():Event {
			return new OlentzeroEvent(type,null,bubbles,cancelable);
		}
		public override function toString():String {
			return formatToString("OlentzeroEvent","params","type","bubbles","cancelable");
		}
	}
}